package main

import (
	"fmt"
	"regexp"
)

func main(){
	str:="abc123def"
	pat:="\\d"
	isMatched, _ := regexp.MatchString(pat, str)
	fmt.Println(isMatched)

	re,_:=regexp.Compile(pat)
	result := re.ReplaceAllString(str, "X")
	fmt.Println(result)

	fmt.Println(re.Split("abc1def1ghi1jkl",-1))
}
